<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<ul id="archive-list">
<?php foreach ($this->items as $item) : ?>
	<li class="row<?php echo ($item->odd +1 ); ?>">
		<h4 class="contentheading">
			<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($item->slug)); ?>">
				<?php echo $this->escape($item->title); ?></a>
		</h4>

		<section class="meta">
		<?php if (($this->params->get('show_section') && $item->sectionid) || ($this->params->get('show_category') && $item->catid)) : ?>
			<p class="catsect">
			<?php if ($this->params->get('show_section') && $item->sectionid && isset($item->section)) : ?>
				<span>
				<?php if ($this->params->get('link_section')) : ?>
					<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($item->sectionid)).'">'; ?>
				<?php endif; ?>

				<?php echo $item->section; ?>

				<?php if ($this->params->get('link_section')) : ?>
					<?php echo '</a>'; ?>
				<?php endif; ?>

				<?php if ($this->params->get('show_category')) : ?>
					<?php echo ' - '; ?>
				<?php endif; ?>
				</span>
			<?php endif; ?>
			<?php if ($this->params->get('show_category') && $item->catid) : ?>
				<span>
				<?php if ($this->params->get('link_category')) : ?>
					<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($item->catslug, $item->sectionid)).'">'; ?>
				<?php endif; ?>
				<?php echo $item->category; ?>
				<?php if ($this->params->get('link_category')) : ?>
					<?php echo '</a>'; ?>
				<?php endif; ?>
				</span>
			<?php endif; ?>
			</p>
		<?php endif; ?>

		<?php if ($this->params->get('show_create_date')) : ?>
			<p class="createdate">
				<?php echo JText::_('Created') .': '.  JHTML::_( 'date', $item->created, JText::_('DATE_FORMAT_LC2')) ?>
			</p>
		<?php endif; ?>
		<?php if ($this->params->get('show_author')) : ?>
			<p class="byline">
				<?php echo JText::_('Author').': '; echo $item->created_by_alias ? $item->created_by_alias : $item->author; ?>
			</p>
		<?php endif; ?>
		</section>
		<section class="intro">
			<?php echo substr(strip_tags($item->introtext), 0, 255);  ?>...
		</section>
	</li>
<?php endforeach; ?>
</ul>
	<section class="pagination">
		<p class="page_nav">
				<?php echo $this->pagination->getPagesLinks(); ?>
		</p>
		<p class="page_count">
				<?php echo $this->pagination->getPagesCounter(); ?>
		</p>
	</section>